﻿using System;

namespace vkMessengerApp.Core.Networking
{
    public class VkontakteApi
    {
        public static string VkAppId
        {
            get { return "3062406"; }
        }

        public static string VkAppSecret
        {
            get { return "y1OXmWtOouOu61v5ZPzU"; }
        }

        public static string AuthorizationUrl(string username, string password)
        {
            return String.Format(
                    "https://oauth.vk.com/token?grant_type=password&client_id={0}&client_secret={1}&username={2}&password={3}",
                        VkontakteApi.VkAppId, VkontakteApi.VkAppSecret, username, password);
        }

        
    }
}